<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>更新</title>
</head>
<body>
<form th:action="@{/employee}" method="post">
    <input type="hidden" name="_method" value="put"><br/>
    <input type="hidden" name="id" th:value="${employee.id}"><br/>
    lastName:<input type="text" name="lastName" th:value="${employee.lastName}"><br/>
    email:<input type="text" name="email" th:value="${employee.email}"><br/>
    <!--拿着 th:field的值 跟 value进行比较，他就会自动添加 checked-->
    gender:<input type="radio" name="gender" value="1" th:field="${employee.gender}">
    <input type="radio" name="gender" value="0" th:field="${employee.gender}"><br/>
    <input type="submit" value="修改">
</form>
</body>
</html>